package com.jinhongone.pattern.structure.decorator;

/*
 * 培根类：具体装饰者
 * */
public class Bacon extends Garnish {

    public Bacon(FirstFood firstFood) {
        super(firstFood, 2, "培根");
    }

    @Override
    public float cost() {
        return getPrice() + getFirstFood().getPrice();
    }

    @Override
    public String getDesc() {
        return super.getDesc() + getFirstFood().getDesc();
    }
}
